package br.com.danilloguimaraes.utils;

/**
 *
 * @author Danillo
 */
public class Utils {

    /**
     * Verify is a {@link String} value is null or empty.
     * @param value
     * @return 
     */
    public static boolean isNullOrEmpty(String value){
        if(isNull(value)||value.isEmpty()){
            return true;
        }
        return false;
    }
    
    /**
     * Verify if an object is null.
     * @param value
     * @return 
     */
    public static boolean isNull(Object value){
        if(value==null){
            return true;
        }
        return false;
    }
        
}
